<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.jd.ty.pojo" >
	<class name="Permission" table="PERMISSION" schema="TYMS">
	    <id name="permissionId" type="java.lang.Long">
            <column name="PERMISSION_ID" precision="10" scale="0" />
            <generator class="identity" >
            </generator>
	    </id>
	    <many-to-one name="role" class="com.jd.ty.pojo.Role" column="ROLE_ID" />
	    <many-to-one name="function" class="com.jd.ty.pojo.Function" column="Function_ID" />
	    <property name="permission" type="java.lang.Long">
	        <column name="PERMISSION" length="10" not-null="true" default="1" />
	    </property>
	</class>
</hibernate-mapping>
